

<form method="post" action="<?php echo $this->Html->url('/home/searchproperty'); ?>">
    <div id="h_container_search">
        <h4><?php echo __('Search Propertyes');?></h4>
        <?php
        echo $this->Form->input('Search.category', array(
            'label' => false,
            'type' => 'select',
            'options' => $this->requestAction('Common/search'),
            'class' => 'h_width_category',
            'div' => false
        ));
        ?>
        <?php
        echo $this->Form->input('Search.location', array(
            'label' => false,
            'type' => 'select',
            'options' => array('' => __('Location'), 37 => __('Ho Chi Minh City'), 38 => __('Ha Noi')),
            'class' => 'h_width_location',
            'div' => false
        ));
        ?>
        <?php
        echo $this->Form->input('Search.min_price', array(
            'label' => false,
            'type' => 'select',
            'options' => $this->requestAction('Common/searchVillaMinPrice'),
            'class' => 'h_width_bed_fix',
            'div' => false
        ));
        ?>
        <?php
        echo $this->Form->input('Search.max_price', array(
            'label' => false,
            'type' => 'select',
            'options' => $this->requestAction('Common/searchVillaMaxPrice'),
            'class' => 'h_width_bed_fix',
            'div' => false
        ));
        ?>

        <?php
        echo $this->Form->input('Search.bed_min', array(
            'label' => false,
            'type' => 'select',
            'options' => $this->requestAction('Common/searchVillaMinBed'),
            'class' => 'h_width_bed_fix',
            'div' => false
        ));
        echo $this->Form->input('Search.bed_max', array(
            'label' => false,
            'type' => 'select',
            'options' => $this->requestAction('Common/searchVillaMaxBed'),
            'class' => 'h_width_bed_fix',
            'div' => false
        ));
        ?>
        <?php
        echo $this->Form->input('Search.search_name', array(
            'label' => false,
            'type' => 'text',
            'class' => 'h_width_search',
            'div' => false
        ));
        ?>
        <button type="submit" class="btn btn-danger h_button_search" ><?php echo __('Search');?></button>
        
    </div>
    <?php echo $this->element('location_filter');?>

</form>